from django.conf.urls.defaults import *
from stratplatform.content.views import list_entries, create_entry, display_entry, display_page

urlpatterns = patterns('stratplatform.content',
    ( r'^strats/$', list_entries, { 'entry_type': 'strategy' } ),
    ( r'^replays/$', list_entries, { 'entry_type': 'replay' } ),
    ( r'^videos/$', list_entries, { 'entry_type': 'video' } ),
    ( r'^maps/$', list_entries, { 'entry_type': 'map' } ),
    ( r'^create/$', create_entry ),
    ( r'^strat/(?P<slug>[A-Za-z0-9_.\-]*)/$', display_entry ),
    ( r'^(?P<slug>[A-Za-z0-9_.\-]*)/$', display_page ),
)
